//
//  MatchViewCell.m
//  quxiangtao
//
//  Created by HHuajiang on 2018/11/9.
//  Copyright © 2018 shanhaijin. All rights reserved.
//

#import "MatchViewCell.h"

@implementation MatchViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        for (int i = 0; i < 3; i ++) {
            
            UILabel *label = [[UILabel alloc] init];
            label.backgroundColor = WhiteColor;
            label.textAlignment = NSTextAlignmentCenter;
            label.font = [UIFont systemFontOfSize:12];
            label.textColor = Color333333;
            [self.contentView addSubview:label];
            [label mas_makeConstraints:^(MASConstraintMaker *make) {
                switch (i) {
                    case 0:
                    {
                        make.left.mas_equalTo(0);
                        make.width.mas_equalTo(Scale_W(170));
                        self.orderNumLabel = label;
                    }
                        break;
                    case 1:
                    {
                        make.left.mas_equalTo(Scale_W(170));
                        make.width.mas_equalTo(Scale_W(120));
                        self.orderTimeLabel = label;
                    }
                        break;
                    case 2:
                    {
                        make.left.mas_equalTo(Scale_W(290));
                        make.width.mas_equalTo(Scale_W(85));
                        label.textColor = [UIColor colorWithHexString:@"#ec4051"];
                        self.orderMoneyLabel = label;
                    }
                        break;
                        
                    default:
                        break;
                }
                
                make.top.mas_equalTo(10);
                make.height.mas_equalTo(30);
                
            }];
        }
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end
